package structures.clipboard;

import java.io.Serializable;

import structures.xmltable.ServiceBaseTypeParameter;

public class ClipboardBaseParameter implements IClipboardObject, Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6551255245675232015L;
	
	private ServiceBaseTypeParameter parameter;

	public ClipboardBaseParameter(ServiceBaseTypeParameter parameter) {
		super();
		this.parameter = parameter;
	}

	@Override
	public String getDisplayName() {
		return parameter.getBagKey();
	}

	@Override
	public String getId() {
		return String.valueOf(parameter.hashCode());
	}

	public ServiceBaseTypeParameter getParameter() {
		return parameter;
	}

	public void setParameter(ServiceBaseTypeParameter parameter) {
		this.parameter = parameter;
	}

	public String getType() {
		return "BagKey";
	}
	
}
